package com.mes.cloud.api.dto.request.role;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 角色表
 *
 * @author wxm
 * @version 2019-08-01 15:33:26
 * @email xiaomin.wu1@pactera.com
 */
@Data
public class SysRolePageListRequest implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "当前页", required = true)
    @NotNull(message = "currentPage不能为空")
    private int currentPage;

    @ApiModelProperty(value = "每页条数", required = true)
    @DecimalMax(value = "1000", message = "currentPage不能超过1000")
    private int pageSize;

    @ApiModelProperty(value = "分类", required = false)
    private String categories;

    @ApiModelProperty(value = "搜索框角色名称/编码", required = false)
    private String queryString;

    @ApiModelProperty(value = "禁用/启用", required = false)
    private String enableFlag;

}
